package cn.change.basic.util;

import lombok.Data;

/**
 * @author 16252
 */

@Data
public class AjaxResult {

    private boolean success = true;
    private String message = "ok";
    private Object resultObj;


    public AjaxResult setSuccess(boolean success) {
        this.success = success;
        return this;
    }

    public AjaxResult setResultObj(Object resultObj) {
        this.resultObj = resultObj;
        return this;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public static AjaxResult me(){
        return new AjaxResult();
    }

}
